home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 051-075 / disk_059 / browser / browser.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  3KB  |  80 lines

  1. struct FStatistics
  2. {
  3.    long bites;
  4.    long words;
  5.    long lines;
  6. };
  7. /*
  8.  * Pictures for the up and down arrows
  9.  */
  10. static USHORT arrows[2][GHEIGHT] = {
  11.    {0xFE7F, 0xFC3F, 0xF81F, 0xF00F,   /* Up */
  12.     0xFC3F, 0xFC3F, 0xFC3F, 0xFC3F, 0xFC3F},
  13.    {0xFC3F, 0xFC3F, 0xFC3F, 0xFC3F,   /* Down */
  14.     0xFC3F, 0xF00F, 0xF81F, 0xFC3F, 0xFE7F}
  15.    } ;
  16. /*
  17.  * Now, the Image structures that use the arrows
  18.  */
  19. static struct Image Arrow_Image[2] = {
  20.    {0, 0, GWIDTH, GHEIGHT, 1, arrows[UP_GADGET], 1, 0,  /* Up */
  21.       /*(struct Image *)*/ NULL},
  22.    {0, 0, GWIDTH, GHEIGHT, 1, arrows[DOWN_GADGET], 1, 0,  /* Down */
  23.       /*(struct Image *)*/ NULL}
  24.    };
  25. /*
  26.  * Now, my Gadget structures
  27.  */
  28. static struct PropInfo prop;
  29. static struct Image prop_img;
  30.  
  31. static struct Gadget Scroll_Gadget = {
  32.    /*(struct Gadget *)*/ NULL,   /* End of Gadgets */
  33.    0,11+GHEIGHT,            /* Left, Top */
  34.    GWIDTH, -(19 + GHEIGHT),
  35.    GRELHEIGHT | GADGHCOMP | GADGDISABLED,
  36.    RELVERIFY,               /* Messages when released */
  37.    PROPGADGET,
  38.    (APTR) &prop_img,
  39.    (APTR) NULL,            /* No rendering image, using HCOMP */
  40.    /*(struct IntuiText *)*/ NULL,
  41.    0L,                     /* No mutex */
  42.    (APTR) &prop,
  43.    SCROLL_GADGET,            /* Yes, this is the scroll gadget */
  44.    (APTR) NULL               /* And nothing of mine */
  45. };
  46.  
  47. static struct Gadget Up_Gadget = {
  48.    &Scroll_Gadget,            /* next gadget is scroll */
  49.    0,11,                  /* Left, Top */
  50.    GWIDTH, GHEIGHT,
  51.    GADGIMAGE | GADGDISABLED | GADGHCOMP,
  52.    RELVERIFY,               /* Messages when released */
  53.    BOOLGADGET,               /* These be boolean gadgets */
  54.    (APTR) &(Arrow_Image[UP_GADGET]),
  55.    (APTR) NULL,            /* No rendering image, using HCOMP */
  56.    /*(struct IntuiText *)*/ NULL,
  57.    0L,                     /* No mutex */
  58.    (APTR) NULL,            /* Nothing special */
  59.    UP_GADGET,               /* Yes, this is the up gadget */
  60.    (APTR) NULL               /* And nothing of mine */
  61. };
  62.  
  63. static struct Gadget Down_Gadget = {
  64.    &Up_Gadget,               /* Next gadget is Up_Gadget */
  65.    0, 1 - GHEIGHT,            /* Left, Top */
  66.    GWIDTH, GHEIGHT,
  67.    GRELBOTTOM | GADGIMAGE |   /* Standard bottom border gadget */
  68.    GADGDISABLED | GADGHCOMP,
  69.    RELVERIFY | BOTTOMBORDER,   /* Messages when released */
  70.    BOOLGADGET,               /* These be boolean gadgets */
  71.    (APTR) &(Arrow_Image[DOWN_GADGET]),
  72.    (APTR) NULL,            /* No rendering image, using HCOMP */
  73.    /*(struct IntuiText *)*/ NULL,
  74.    0L,                     /* No mutex */
  75.    (APTR) NULL,            /* Nothing special */
  76.    DOWN_GADGET,            /* Yes, this is the down gadget */
  77.    (APTR) NULL               /* And nothing of mine */
  78.    }; 
  79.  
  80.